package com.xxx.print;

import java.io.*;

/**
 * @version v1.0
 * @Description
 * @Author admin
 * @date 2021/7/23  11:01
 * @Copyright
 */
public class printWriterDome {
    public static void main(String[] args) {
        try (PrintWriter printWriter = new PrintWriter(new FileWriter("test.txt", true));
             BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
            String a = " ";
            while ((a = reader.readLine()) != null) {
//                writer.write(a);
//                writer.flush();
                printWriter.println(a);

            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    }

